package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.result.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void delete(Long id);

    /**
     * @param permission
     * @param ids:员工担任的角色
     */
    void save(Permission permission, Long[] ids);

    Permission selectById(Long id);

    List<Permission> selectAll();

    /**
     * @param permission
     * @param ids:员工担任的角色
     */
    void update(Permission permission, Long[] ids);

    PageInfo<Permission> query(QueryObject qo);

    void reload();

}
